<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
	
	<process id="compensateProcess" isExecutable="true">

		<startEvent id="start" />
		
		<sequenceFlow sourceRef="start"	targetRef="task" />	
		
        <userTask id="task" />
    	
		<sequenceFlow sourceRef="task" targetRef="end" />
		
		<endEvent id="end" />
    
        <boundaryEvent id="compBoundrayEvent" name="Boundary event" attachedToRef="task">
          <compensateEventDefinition />
        </boundaryEvent>
        
        <userTask id="undoTask" isForCompensation="true"/>
        
        <!-- compensation handler should not have an outgoing sequence flow -->
		<sequenceFlow id="SequenceFlow_10" sourceRef="undoTask" targetRef="end2" />
    
        <endEvent id="end2" />        
    
        <association associationDirection="One" sourceRef="compBoundrayEvent" targetRef="undoTask" />
    
	</process>

</definitions>
